#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int a, b, c;
	int  mid, min;
	int i = 0;
	int arr[3];
	int max = 0;
	for (i = 0; i < 3; i++)
	{
		scanf("%d", &arr[i]);
		//int max = arr[0];

		if (max <= arr[i])
		{
			max = arr[i];

		}

		

	}
	min = arr[0];
	if (min >= arr[1])
	{
		min = arr[1];
	}
	if (min >= arr[2])
	{
		min = arr[2];
	}
	for (i = 0; i < 3; i++)
	{
		if (min < arr[i]&&max>arr[i])
		{
			mid = arr[i];

		}


	}
	printf("%d ", max);
	printf("%d ", mid);
	printf("%d ", min);

	
	

	return 0;
}